package org.jeecg.modules.lab.exam.question.service;


import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.lab.exam.entity.LabExamQuestion;
import org.jeecg.modules.lab.exam.entity.LabExamQuestionAnswer;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 考试试题信息表
 * @Author: jeecg-boot
 * @Date:   2023-08-24
 * @Version: V1.0
 */
public interface ILabExamQuestionService extends IService<LabExamQuestion> {

	/**
	 * 添加一对多
	 *
	 * @param labExamQuestion
	 * @param labExamQuestionAnswerList
	 */
	public void saveMain(LabExamQuestion labExamQuestion,List<LabExamQuestionAnswer> labExamQuestionAnswerList) ;
	
	/**
	 * 修改一对多
	 *
   * @param labExamQuestion
   * @param labExamQuestionAnswerList
	 */
	public void updateMain(LabExamQuestion labExamQuestion,List<LabExamQuestionAnswer> labExamQuestionAnswerList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	/**
	 * 批量删除
	 *
	 */
	public void delBatchBank(String ids, String bId);

	/**
	 * 更新导入数据的bankid
	 *
	 */
	public void updateQuestion(String bankId);
}
